<!DOCTYPE html>
<html>
<head>
    <title>报表管理表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <a class="btn btn-default btn-sm" @click="reset"><i class="fa fa-refresh"></i></a>
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model.trim="q.reportName" @keyup.enter="query" placeholder="报表名称">
                </div>&nbsp;&nbsp;
                <div class="form-group">
                    <a class="btn btn-default btn-sm"  @click="query">查询</a>
                </div>&nbsp;&nbsp;&nbsp;
            <!--<#if shiro.hasPermission("report:erpreport:save")>-->
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <!--</#if>-->
            <!--<#if shiro.hasPermission("report:erpreport:update")>-->
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <!--</#if>-->
            <!--<#if shiro.hasPermission("report:erpreport:delete")>-->
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            <!--</#if>-->
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default" align="center">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal text-center">
            <div class="form-group">
                <div class="col-sm-2 control-label">报表名称:</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="erpReport.reportName" placeholder="报表名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">分类:</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="erpReport.reportCategory" placeholder="报表分类"/>-->
                    <el-select v-model="erpReport.reportCategory" placeholder="报表分类" size="small" style="margin-left: -155px;">
                        <el-option label="财务报表"  value="finance"></el-option>
                        <el-option label="外协报表"  value="supp"></el-option>
                        <el-option label="门店报表"  value="store"></el-option>
                        <el-option label="运营报表"  value="business"></el-option>
                    </el-select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">备注:</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="erpReport.reportRemark" placeholder="备注"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/report/erpreport.js?_${.now?long}"></script>
</body>
</html>